<template>
    <div>
        <router-link to="/c/cc">ccccc</router-link>
        <router-link to="/c/dd">dddddd</router-link>
        <router-link to="/c/ff">ffffff</router-link>
        <br>
        <button @click="btn">随机</button>
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    data() {
        return {
            list: ['CC', 'DD', 'FF']
        }
    },
    methods: {
        btn() {
          this.$router.push({
            name:this.list[Math.floor(Math.random()*3)]
          })
        }
    }
}
</script>

<style>

</style>